package com.ivo.activiti.hr.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 岗位
 * @author wj
 * @version 1.0
 */
@Data
@Entity
@Table(name = "HR_O_Position")
public class Position implements Serializable {

    /**
     * 岗位编号
     */
    @Id
    @Column(name = "Position_ID")
    private String position_ID;

    /**
     * 岗位名称
     */
    @Column(name = "PositionName")
    private String positionName;

    /**
     * 岗位类型
     */
    @Column(name = "PositionType_FK")
    private String positionType;

    /**
     * 所属部门
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "Department_FK")
    private Department department;

    /**
     * 逻辑删除标识
     */
    @Column(name = "validFlag")
    private boolean validFlag = true;
}
